package main

import (
	"database/sql"
	"fmt"
	_ "github.com/mattn/go-sqlite3"
)

func main() {
	getDb()
}
func getDb() {
	db, err := sql.Open("sqlite3", "./asset/snh48.db")
	checkErr(err)
	rows, err := db.Query("SELECT real_name FROM mst_member_info", "")
	checkErr(err)
	defer rows.Close()
	for rows.Next() {
		var real_name string
		rows.Scan(&real_name)
		fmt.Println(real_name)
	}
}
func checkErr(err error) {
	if err != nil {
		panic(err)
	}
}
